package com.zpark.table.controller;


import com.zpark.table.pojo.Reservation;

import javax.servlet.http.HttpSession;


public abstract class BaseController {

    public final static Integer CODE_SUCCESS = 2000;

    /**
     * 从session对象中获取用户登录信息
     * @param session
     * @return
     */
    public Reservation getUser(HttpSession session){
        return (Reservation) session.getAttribute("User");
    }
}
